<?php $this->load->view('administrator/header_view')?>	

    <div id="main">
    	<span style="display:inline-block;float:right"><?php echo anchor('administrator/product/add','Add')?></span><br />
    	<table>
        	<tr>
                <th><?php echo $this->lang->line('address')?></th>
                <th><?php echo $this->lang->line('price')?></th>
                <th><?php echo $this->lang->line('phone')?></th>
                <th><?php echo $this->lang->line('image')?></th>
                <th><?php echo $this->lang->line('detail')?></th>
                <th><?php echo $this->lang->line('action')?></th>
            </tr>
	<?php					
        foreach($product_info as $row){
	?>
        	<tr>
                <td><?php echo $row['address'].', '.$row['d_name'].', '.$row['c_name'];?></td>
                <td><?php echo $row['price']?></td>
                <td><?php echo $row['phone']?></td>
                <td><?php echo anchor('administrator/product/delete/'.$row['id'], $this->lang->line('view'));?></td>
                <td><?php echo anchor('administrator/product/delete/'.$row['id'], $this->lang->line('view'));?></td>
                <td><?php echo anchor('administrator/product/delete/'.$row['id'],'Delete').' | '. anchor('administrator/product/edit/'.$row['id'],'Edit')?></td>
	        </tr>
      <?php }?>
        </table>
    </div>
    
<?php $this->load->view('administrator/footer_view')?>